<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<button id="testbtn">测试按钮</button>
<script>
    document.getElementById("testbtn").addEventListener("click", function () {
        axios.get("http://118.178.252.180:5000/demo")
            .then(function (response) {
                alert(JSON.stringify(response.data));
            })
            .catch(function (error) {
                console.log(error);
            });
    });
</script>
</body>
</html>